package com.slx.battleships_in_a_board;

import org.junit.Assert;
import org.junit.Test;

public class Main {
    @Test
    public void test1() {
        char[][] board = {
                {'X', '.', ',', 'X'},
                {'.', '.', ',', 'X'},
                {'.', '.', ',', 'X'}
        };

        Solution solution = new Solution();
        Assert.assertEquals(2, solution.countBattleships(board));
    }
}
